.file-filter-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 420px;
  background: var(--editor-content-bg, #fff);
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
  border-left: 1px solid var(--editor-border, #e8e8e8);
  z-index: 100;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  border-radius: 8px 0 0 8px;
}

/* 标题栏 */
.file-filter-panel .filter-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--toolbar-bg, #f5f5f5);
  border-bottom: 1px solid var(--editor-border, #e8e8e8);
  border-radius: 8px 0 0 0;
}

.file-filter-panel .filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--editor-text, #333);
  font-size: 14px;
}

.file-filter-panel .close-btn {
  color: var(--editor-line-number, #999);
  border: none;
  background: transparent;
}

.file-filter-panel .close-btn:hover {
  color: var(--status-error, #ff4d4f);
  background: rgba(255, 77, 79, 0.1);
}

/* 输入区域 */
.file-filter-panel .filter-input-section {
  padding: 16px;
  background: var(--editor-content-bg, #fff);
}

.file-filter-panel .filter-input-row {
  margin-bottom: 12px;
}

.file-filter-panel .filter-input {
  width: 100%;
  font-size: 14px;
}

.file-filter-panel .filter-input .ant-input {
  background-color: var(--editor-content-bg, #fff);
  color: var(--editor-text, #333);
  border-color: var(--editor-border, #d9d9d9);
}

.file-filter-panel .filter-input .ant-input:hover,
.file-filter-panel .filter-input .ant-input:focus {
  border-color: var(--status-info, #1890ff);
}

.file-filter-panel .filter-input .ant-input::placeholder {
  color: var(--editor-line-number, #999);
}

.file-filter-panel .filter-options-row {
  margin-bottom: 12px;
}

.file-filter-panel .filter-actions-row {
  display: flex;
  justify-content: flex-start;
}

/* 进度条区域 */
.file-filter-panel .filter-progress-section {
  padding: 12px 16px;
  background: var(--editor-content-bg, #fff);
  border-bottom: 1px solid var(--editor-border, #e8e8e8);
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-filter-panel .filter-progress-section .ant-progress {
  flex: 1;
  margin: 0;
}

.file-filter-panel .progress-text {
  color: var(--status-info, #1890ff);
  font-size: 12px;
  white-space: nowrap;
}

/* 过滤状态区域 */
.file-filter-panel .filter-status-section {
  padding: 16px;
  background: var(--editor-content-bg, #fff);
}

.file-filter-panel .filter-status-card {
  border: 1px solid var(--status-success, #52c41a);
  background: rgba(82, 196, 26, 0.05);
}

.file-filter-panel .filter-status-card .ant-card-body {
  padding: 12px;
}

.file-filter-panel .filter-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.file-filter-panel .status-icon {
  color: var(--status-success, #52c41a);
  font-size: 16px;
}

.file-filter-panel .status-title {
  font-weight: 500;
  color: var(--editor-text, #333);
  font-size: 13px;
}

.file-filter-panel .filter-status-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-filter-panel .filter-text {
  display: flex;
  align-items: center;
}

.file-filter-panel .filter-text .ant-tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

.file-filter-panel .filter-options {
  display: flex;
  gap: 4px;
}

.file-filter-panel .filter-result {
  padding: 4px 0;
}

.file-filter-panel .result-text {
  font-size: 12px;
  color: var(--editor-text, #333);
}

.file-filter-panel .result-text strong {
  color: var(--status-success, #52c41a);
  font-weight: 600;
}

/* 错误信息区域 */
.file-filter-panel .filter-error-section {
  padding: 16px;
  background: var(--editor-content-bg, #fff);
}

.file-filter-panel .filter-error-card {
  border: 1px solid var(--status-error, #ff4d4f);
  background: rgba(255, 77, 79, 0.05);
}

.file-filter-panel .filter-error-card .ant-card-body {
  padding: 12px;
}

.file-filter-panel .error-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-filter-panel .error-title {
  font-weight: 500;
  color: var(--status-error, #ff4d4f);
  font-size: 13px;
}

.file-filter-panel .error-message {
  font-size: 12px;
  color: var(--editor-text, #333);
  word-break: break-word;
}

/* 按钮样式 */
.file-filter-panel .ant-btn {
  border-radius: 6px;
  font-size: 13px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.file-filter-panel .ant-btn-default {
  color: var(--editor-text, #333);
  border-color: var(--editor-border, #d9d9d9);
  background: var(--editor-content-bg, #fff);
}

.file-filter-panel .ant-btn-default:hover {
  color: var(--status-info, #1890ff);
  border-color: var(--status-info, #1890ff);
  background: rgba(24, 144, 255, 0.05);
}

.file-filter-panel .ant-btn-primary {
  color: #fff;
  background: var(--status-info, #1890ff);
  border-color: var(--status-info, #1890ff);
}

.file-filter-panel .ant-btn-primary:hover {
  background: var(--status-info-hover, #40a9ff);
  border-color: var(--status-info-hover, #40a9ff);
}

.file-filter-panel .ant-btn[disabled] {
  color: var(--editor-line-number, #999);
  background: var(--editor-content-bg, #fff);
  border-color: var(--editor-border, #d9d9d9);
  opacity: 0.6;
}

.file-filter-panel .ant-btn-text {
  border: none;
  background: transparent;
  color: var(--editor-text, #333);
}

.file-filter-panel .ant-btn-text:hover {
  background: var(--toolbar-hover, rgba(0, 0, 0, 0.04));
}

/* 滚动条样式 */
.file-filter-panel::-webkit-scrollbar {
  width: 8px;
}

.file-filter-panel::-webkit-scrollbar-track {
  background: var(--scrollbar-track, #f1f1f1);
}

.file-filter-panel::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb, #c1c1c1);
  border-radius: 4px;
}

.file-filter-panel::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover, #a8a8a8);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .file-filter-panel {
    width: 100%;
    right: 0;
    border-radius: 0;
  }
}